package com.crm.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Map;

@Data
public class ActivityDto {
    private Long id;

    private Integer pageNum = 1;

    private Integer pageSize = 10;

    private String code;

    private Integer channel;

    private Map<String, Object> params;

    //接收params下的时间参数
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime beginCreateTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime endCreateTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime endTime;

    /**
     * 活动名称
     */
    private String name;


    /**
     * 活动信息
     */
    private String info;

    /**
     * 活动类型
     */
    private Integer type;

    /**
     * 活动明细-折扣
     */
    private BigDecimal discount;

    /**
     * 代金券
     */
   private Integer  vouchers;


}
